How can I convert a long to int in Java